package com.java.gamePackeg.event;

import com.java.gamePackeg.Player;
import com.java.gamePackeg.Product;

import javax.swing.*;
import java.util.List;

public class GiveMoneyEvent implements Event {
    private static final int GIVE_MONEY = 10000;

    @Override
    public void event(Player player, List<Product> marketProList) {
        JOptionPane.showMessageDialog(null, "遇到小时给过饼吃的王二蛋，给了你" + GIVE_MONEY + "作为报答");
        //设置现金增加GIVE_MONEY
        player.setMoney(player.getMoney() + GIVE_MONEY);
    }


}
